<template>

    <div class="article-list__container">
    <!-- 文章列表 -->
    <article-item v-for="(obj,idx) in arr" :key="idx" :arrart="obj" :i='idx' @del-art="del" :showCorse='true'></article-item>

  </div>

</template>

<script>
export default {
  props: {
    // 接受home传递的数组
    arr: {
      type: Array,
      required: true
    }
  },
  methods: {
    del (idx) {
      this.$emit('del-art', idx)
    }
  }
}
</script>
